﻿using JetBrains.ReSharper.Psi.CSharp.Tree;
using Moq;

namespace TwinsTests.Classes.Tests.Hanlder.Tests
{
    public class CreaterInvocationExpression
    {
        public IInvocationExpression CreateInvocationExpression(string expression)
        {
            var invocationExpression = new Mock<IInvocationExpression>();
            invocationExpression.Setup(m => m.InvokedExpression.GetText()).Returns(expression);
            return invocationExpression.Object;
        }
    }
}